Do not allow font caches to grow too large.
authorDmitry Antipov <dmantipov@yandex.ru>
Mon, 21 Oct 2013 14:11:25 +0000 (18:11 +0400)
committerDmitry Antipov <dmantipov@yandex.ru>
Mon, 21 Oct 2013 14:11:25 +0000 (18:11 +0400)
commit1b216b259d6ca0e8315ab275efbaf867df46519b
tree24782894271a822337ca0aed02c41277252d6705
parentb07aba3b2997a464742fc60ca88fd20473d037f5
Do not allow font caches to grow too large.
* alloc.c (compact_font_cache_entry, compact_font_caches):
New functions or stub if not HAVE_WINDOW_SYSTEM.
(compact_undo_list): Factor out from Fgarbage_collect.
Add comment.
(mark_face_cache): Mark face font.  Move down to avoid
extra prototypes.
(mark_terminals): Do not mark font cache here.
(Fgarbage_collect): Call compaction functions described
above.  Adjust comment.
src/ChangeLog
src/alloc.c